package com.cyk.controller;

import com.cyk.dubbo.api.CodeService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/code")
public class CodeController {
    @Reference
    private CodeService codeService;

    @GetMapping("/create/{email}")
    
    public Boolean create(@PathVariable String email) {
        return codeService.create(email);
    }
}
